package com.zhike.common.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 动态评论表
 * @TableName zhike_post_comments
 */
@TableName(value ="zhike_post_comments")
@Data
public class ZhikePostComments implements Serializable {
    /**
     * 评论ID
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 动态ID
     */
    private Integer postId;

    /**
     * 评论用户ID
     */
    private String userId;

    /**
     * 评论内容
     */
    private String content;

    /**
     * 评论附件
     * */
    private String images;

    /**
     * 被回复的评论ID，如果是顶级评论则为NULL
     */
    private Integer parentId;


    private  String targetReplyUid;

    private String targetUid;

    /**
     * 评论创建时间
     */
    private Date createTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
